Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix expectation with measurements code #52

Merged
merged 4 commits into from
Nov 9, 2023
Merged

Fix expectation with measurements code #52

merged 4 commits into from
Nov 9, 2023

Conversation

chmwzc
Copy link
Contributor

@chmwzc chmwzc commented Nov 3, 2023

Resolves #14. Tentatively working code to get expectation_from_samples working with a SymbolicHamiltonian containing X/Y terms. Some further testing, cleaning up of the code, and documentation needed before it's ready to be merged.

PS. Still having problems with the installation, will raise a new issue if I can't solve it

Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
src/qibochem/ansatz/basis_rotation.py 98.11% <100.00%> (+0.03%) ⬆️
src/qibochem/ansatz/hardware_efficient.py 100.00% <ø> (ø)
src/qibochem/measurement/expectation.py 100.00% <100.00%> (+72.97%) ⬆️

📢 Thoughts on this report? Let us know!

@chmwzc chmwzc marked this pull request as ready for review November 8, 2023 03:23
Also adds documentation for basis rotation ansatz and some other minor edits
@damarkian damarkian merged commit a890c5d into main Nov 9, 2023
6 checks passed
@chmwzc chmwzc deleted the measurements branch November 15, 2023 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Basis rotation for measurement
2 participants